package com.macro.mall.service.impl;

import com.github.pagehelper.PageHelper;
import com.macro.mall.mapper.BmsParkingPaymentRecordsMapper;
import com.macro.mall.model.BmsParkingPaymentRecords;
import com.macro.mall.service.BmsParkingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 停车缴费记录查询
 * Created by macro on 2018/4/26.
 */
@Service
public class BmsParkingServiceImpl implements BmsParkingService {

    @Autowired
    private BmsParkingPaymentRecordsMapper bmsParkingPaymentRecordsMapper;

    /**
     * 获取停车缴费记录数据
     * @return
     */
    @Override
    public List<BmsParkingPaymentRecords> getParkingList(BmsParkingPaymentRecords bmsParkingPaymentRecords, Integer pageSize, Integer pageNum) {
        PageHelper.startPage(pageNum, pageSize);
        List<BmsParkingPaymentRecords> bmsParkingPaymentRecordsList = bmsParkingPaymentRecordsMapper.selectByQuery(bmsParkingPaymentRecords);
        return bmsParkingPaymentRecordsList;
    }

}
